package model;

public class Shop {
	
	private static int currentId = 0;
	
	private int id;
	private String name;
	private String location;
	
	public Shop() {
		id = 0;
		name = null;
		location = null;
	}
	
	public Shop(String n, String l) {
		currentId++;
		id = currentId;
		name = n;
		location = l;
	}
	
	public Shop(int i, String n, String l) {
		id = i;
		name = n;
		location = l;
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int i) {
		id = i;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String n) {
		name = n;
	}
	
	public String getLocation() {
		return location;
	}
	
	public void setLocation(String l) {
		location = l;
	}

}
